<template>
  <div>
    <mySelect :options="state.options" v-model:currentVal="currentVal"></mySelect>
    {{currentVal}}
  </div>
</template>

<script>
import { reactive, ref } from "@vue/reactivity";

export default {
  setup() {
    const state = reactive({
      options:[{
        label:"小明",
        value:"1"
      },{
        label:"小红",
        value:"2"
      },{
        label:"小丽",
        value:"3"
      }]
    })

    const currentVal = ref("1")

    return {
      state,
      currentVal
    }
  },
};
</script>

<style>
</style>